package com.baosu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baosu.domain.ImgSha1;
import com.baosu.mapper.ImgSha1Mapper;
import com.baosu.service.ImgSha1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ImgSha1ServiceImpl extends ServiceImpl<ImgSha1Mapper, ImgSha1> implements ImgSha1Service {
    @Autowired
    private ImgSha1Mapper imgSha1Mapper;

    @Override
    public boolean insert(String sha1) {
//        this.save()
        return false;
    }

    @Override
    public ImgSha1 getBySha1(String sha1) {
        return imgSha1Mapper.selectBySha1(sha1);
    }
}
